package com.wwtech.epp.ui.adapter.work;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * 作者：Android on 2017/10/17
 * 邮箱：365941593@qq.com
 * 描述：
 */

public class AppItemDecoration extends RecyclerView.ItemDecoration {
    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        //设定底部边距为1px
        int count = parent.getChildCount();
        View child = parent.getChildAt(count - 1);
        outRect.set(0, 0, 0, 30);
    }
}
